<!DOCTYPE html>
<html lang="en">
<head>
[#include "/customer/include/static.htm"]
    <link href="${path}/resources/css/user.css?v=2" rel="stylesheet" type="text/css"/>
    <link href="${path}/resources/plug/layui/css/layui.css" rel="stylesheet" type="text/css"/>
    <style type="text/css">
        option {
            font-size: 14px;
            line-height: 20px;
        }
    </style>

[#import "/customer/include/pagination.ftl" as p/]
</head>
<body>
<!--头部-->
[#include "/customer/include/header.ftl"]
<div class="member">
    <!--左边-->
[#include "/customer/include/member_left_menu.ftl"]

    <!--左边 end-->
    <div class="memberRight">
        <div class="member_tab">
            <div class="member_tab">
                <a href="/member/bid/bidding" >筹款中的借款标</a>
            </div>
        </div>
        <div class="member_tab_info">
            <table class="layui-table">
                <thead>
                <tr >
                    <th>类型</th>
                    <th>项目名称</th>
                    <th>金额</th>
                    <th>利率</th>
                    <th>奖励</th>
                    <th>期限</th>
                    <th>申请时间</th>
                </tr>
                </thead>
                <tbody>
                [#if borrows?? && borrows?size > 0]
                    [#list borrows as borrow]
                    <tr>
                        <td >${borrow.category_name }</td>
                        <td>${borrow.name }</td>

                        <td>￥${borrow.account }</td>
                        <td>${borrow.apr }%</td>
                        <td>${borrow.radio_account }%</td>
                        <td>
                        ${borrow.time_limit }

                                    ${(borrow.is_day==1)?string("天","个月")}
                        </td>

                        <td>
                        ${p2p_date_format(borrow.addtime,"yyyy-MM-dd HH:mm:ss")}
                        </td>

                    </tr>
                    [/#list]
                [#else]
                <tr ><td id="tbody" style="background: #fff" colspan="8"><div class="nodataimg"></div></td></tr>
                [/#if]
                </tbody>
            </table>
        [@p.pager pager = page  url = "${path}/member/bid/bidding"/]


        </div>
    </div>
</div>
<script type="text/javascript" src="${path}/resources/plug/layui/layui.js"></script>
<script type="text/javascript">
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        var start = {
            min: '2017-06-01 00:00:00'
            ,max: '2099-06-16 23:59:59'
            ,istoday: false
            ,choose: function(datas){
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };

        var end = {
            min: '2017-06-01 00:00:00'
            ,max: '2099-06-16 23:59:59'
            ,istoday: false
            ,choose: function(datas){
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };

        document.getElementById('startDate').onclick = function(){
            start.elem = this;
            laydate(start);
        }
        document.getElementById('endDate').onclick = function(){
            end.elem = this
            laydate(end);
        }

    });
</script>
[#include "/customer/include/footer.ftl"]
</body>
</html>